extra code removed in activity