this wouldn't have been written this way