fixed get empty space method