for swift exercise