removed needless intermediate variable