added codes for WEF