fixed bugs w/min. order and required attributes!