added freezing to entities