udpate chick.R