added messages creation logic