updated factorial syntax