fixed minor glitches