fix indent
extract variable
use prefix 'src' and 'dist'
Unify function args order

first argument is a subject