renamed function to be slightly less weird