adjusted sendResults method