fixed minor bugs found while in lab