remove code duplication
eunit