removed onLoad function