needs inline
change window prototype