added int casting for package size