first part of solution formula is ready