rename function to be less generic