Removed empty check in gv function