maps logic
error in return back from map