swift refinements