added stock finding and formatting