random code written for rough use