rename funciton to make it more consistent