separate converting function + validator function + fill up the the unit tests with element