sample codes for operation on ff object