almost done still need to finish find function