adding message lenght limit, but buggy