improved run time and storage analysis