added message compilation function to make file