some code fragments