modified .eco script - 'else' replaced with if