[minor] simplified code