fixing up ack functions