updated cd, fg, and bg