fix duplicate method error