moving marc manipulation to it's own file