fix marcus code