changed variable to datatype long