fixed some red code