fixed minor regression and tweaked algorithm

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>
updated timings

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>