changed way of user_ids creation