added minmax form