default working code