framework code