Updated karthik's main