add declare; change let to syntactic sugar