add static fn to model