bug fixing and black bed