started code for megapit data