replaced .width() for [0]