fixed algorithm for constants with bounds