loop to evaluate multiple operations added