small efficiency changes in rbf