Please assign the functions return value to a var instead of invoking twice