updated ex6 for CE2014