added a round number check to avoid wrong usage