fixed chatopia class error though there is an error in compiling not
sure what it is.