try declaring variable before adding props