implemented first node check