nomethod error fixed