handle no method error properly