checking if link is scheduled before allocating