reference fixes
not the best code ever but it does fix my current issue