fixed up refernces