adding user and guest codes