get method added and post code fixed.