implemented background drawing