fixed messed up shit in map fxn