fixed error when compiling for desktop
fixed potential allocation problem, added capacity method