fixed stack error and some things