remove redundant function
fixes bug in equals method
caused by api change