it'd help if I wrote the right code