minor changes for functions