changed messageid from int to long
code format and contrl + f