adding analysis stuff