eliminated loop introduced into controller