change data type of stockId to Integer