fixed bugs  at various variables and logical operators added overwrite warning