better relative checking