remove pointer cast