decimals refactoring and range sample