fully implemented linear probe