adding left padding.
adding map/reduce part.