workin on message and command in c