converting to method on board instead of global method.