bring the code to blog quality :-)