fixing return type for ipjfact