thanks @egilburg for the performance tip