changes for CGB

changes for cgb implementation