reduce file size to unify common parts