minor performance improvment