refactored test1