modify buy condition