tweak on time calculate and random