added possibility to use a custom inner value