fixed pointer because of weird compiler error