encoding problem fixed, can be directly invoked