fixed steve's broken ass code