this bit was kind've weird (see below)