worked on mega code