use suffix and loops