modified to add oesallowed