ERROR (line 49): called function with wrong type