refactored empty_arr