function4 added