fixed incorrect function call