added setUseWrapMode method