add tested logic