finalize code - correct synchronous fetch