removed ldata parameter from sendPKG call - it is calculated within the function anyway