finished my earlier coding, and everything works now!