added check existing stocks when buying