added check before ordering
Merge remote-tracking branch 'origin/master'