cleaning up main and recommend