refactored helper specs