some tiny refactorings
no mirroring of name
added name inpout