attempt: fixed some errors