proper home encoding