refactored str to name