fixed some incorrect function naming