fixing mass-assignment problem