removed creation of mapper inside for-loop