moved message method to helper module