set type to async