rename function to better indicate purpose