rm one unneccessary loop