renamed functions to comply with convention.