refactoring method impliments.
add test for multi rows operations.