access check implemented

for each custom function , access check has bee implemented for the
member class