removed debugging function calls