Hi > check_elem (x:xs) = if x == e then (l2 ++ xs) else [x] ++ check_elem xs Why not: > check_elem (x:xs) = if x == e then (l2 ++ xs) else x : check_elem xs Thanks Neil