bug fix function naming