fixed sanity chacks