miscellaneous; mostly work on loops