combine this and the following check