updated to fit AWS condition

pull request