handle dividebyzero if no swap in use