completed implementation of dependent calc