fixes to compile successfully