adding in a bit of framework to make this ready to read distance