added senduser func