removed comments out min() call