fixed comparison within '[]' and '{}'