fix to remove warnings from console