send null err as first argument