fixing bugs and redoing computution time test