fixing method call syntax