added min max annotation support