adds function to make contribution