converted to mybatis