changin null for 0 setting views modes variables