changed the method names to more understandable