clean up constructor