attempt to fix the issue with position being detirmined before length set