create and update bug fixed