working with automatic read of basis but still not perfect