changed the name of the method according to naming conventions