removed old code, commented cost code