actually fixed error call function lolololol