fixed mass assignmenet error and removed without protection flag