fixing stmt issue