refactors method that returns @space