some simple and useful small code