add exception handling for values below 1