rename function to better name