quad for while added