old code parts deleted