attempt: fixed errors