chaiwat update function login 1-6-57 16.14