refactored: pear cs