change the return value of the webservices into intenger