built null_packet and replaced errors with implementation