started AlGaN functions file