removed onload function