add a cap on reference output