Using different functions for sending and replying to messages. Will extract out the comment socket mechanism later
the reply function done
padded the input element