add while loops