making small progress on loop