wrong spacing (no space between min and ( )
also I think it would be good to have a function for this: