fixing emptyspace