q
updated code