Geting the space base on criteria