cleaning up refernces