making progress on loops