removed repeated variables