corected tail+3 to tail+5