remove promise code