renamed a function for clarity purposes