added market functions