fix copy&paste typo
moved stack from header to C file