changed function assignment syntax