removed unused `$starttime`