added loop to feedback