fixing some errors from insigth