some additions for the loop