got empty space check working... phew