put in proper compatability check