trying to fix nomethod 'content' on nil class error