changed fork to work