made function for proper distance frame across years