fixing compressed code problem closes #11