updating api to clean up uneeded variables