renamed variable 'minimum' and added explanation as to why it is used.