solved the error with msg structure finally