fixed dumb code