background mode added