Added backup method
my old solution didnt work so i had to go with the one i didnt like.