fix check same routine