bugfix with pointer