input helpers return hash