use double for default generator