fix timing of call