cleaned up code, reduced unnecessary . included cookies