applied suggestion from @ediosyncratic