finding the suitable space