fix turtle functions with parameters