changed private methods