fixed foolish typescript errors