fixed all errors, now working on frontend