redundent code from post removed