modified to give credit