shifted to percentage and investment amount
added line and val cap fix