remove unused var
fix callback on err