change buy logical errors