done fixed value loop and wrote tests