moved newmsgid to end of method declaration