adding main which was missing