removes unecessary invocation of onload event