wrong call to function