definition moved to onload