debugging alignment errors