function table for swift