revamp code