adding in checks for flatland