return the type someone send