updated placeholder depending on type