had some erros made it work need to look into the errors more