some code for beauty of programming