removed second open statement