added rangebar library for maintaining min/max