everything works but code like a bullshit