added debug bar to code, dont forget to remove later