added more code and comparison
added array value to expression