builds but there is still a bug