declared swap