added multiple loops plot distribution