code fix for nathan