renamed methods to have better code understanding