added and testing option ranmax
version 0.2.2