add validation to check same basis