beautified mustafas code