remove array_map() call that was causing more problems than it was helping