added loop for testing