changed names of methods to be more clear