correct array_map usage