inline functions for SimBA