added minium check