barasala function procedure