added if statement around body on standard index