revised method how send attributes to sever