fixed everything and it works mostly