removed probability from console and changed err handling for insert