add end method to call