corrected tt onload