add userID&delete redundancy code