optimizing some loops