trying to fix compiler erros