remove hgal dep
safe array