return from functions earlier