new code method for user