ex. 5 and cleanup