fix syntax + undefined method call