grade progeam added without && in logic