cleaned up background code..