fix null pointer error
fix wrong debug output
remove sysout
removes unintended move operations