added bool case in ERel