speed up result computation