change resolution type
provide a more robust delay function