remove unnecessary if
add option to preserve file mod times