ver. 5.1 functions