use a utility function from effect