i'm getting an 'object has no method' error and i'm not sure why