changed functional syntax