this is a nice way to split this up. It might be worth adding a comment that this function is not used yet.