beginning of analysis