test and functions worked