refactored main.coffee for add condition
Fixed issue related to multilpe adding of unwanted conditions