fixed some small codes