renamed some methods to more meaningful names