adding depedent values