added comments to ATPupdate