working before range