just some little code, but useful