update target filling logic