cleaned up unnecessary error callback