fixed some reference things