Reducing gnuls function to one line, better performance, less errors