putting properly only if changed with directory as a target