use if else rather than multiple continues..