before return