added code

some usable code