move code to background