fixing factory for user