What did stoicism and epicureanism have in common?

Both of the stoicism and epicureanism want human happiness with out pain