fixed style errors, made dupeCheck return boolean