world resize functionality