faster rbf for testing