insert brandon's code