roughly done with adding references.