use spawn_link instead of spawn