done for both