added primary and secondary blocks