cleaning up references