corrected overwrite target functionality