fixing array operations
endofcommand fix for assignements