perimater calculation added