removed the minmax code (#148)