add runtime as a parameter