fix action functions