made some logic changes to golden_pyramid