updated to include apt-get update at the beginning