kinda broken code

but can be reworked if we cant figure out how to get rid of flickering