finished basic loading bar, needs testing