changed draw func for params