renamed some methods to better understand workflow