code standard to pear, almost finished