fixing misnamed function