fixed minor error. changed minor timing.