made this for the railsbridge class