# ReinforcementLearning.jl weird behavior on custom environment, reset! is in Schrödingers namespace

**URL:** <https://discourse.julialang.org/t/reinforcementlearning-jl-weird-behavior-on-custom-environment-reset-is-in-schrodingers-namespace/84605>\
**Category:** Machine Learning\
**Tags:** question\
**Created:** [July 21, 2022, 8:43pm UTC](https://discourse.julialang.org/t/reinforcementlearning-jl-weird-behavior-on-custom-environment-reset-is-in-schrodingers-namespace/84605 "2022-07-21T20:43:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bileamScheuvens](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bileamscheuvens/32/33350_2.png) [@bileamScheuvens](https://discourse.julialang.org/u/bileamScheuvens)\
**Post date:** [July 21, 2022, 8:43pm UTC](https://discourse.julialang.org/t/reinforcementlearning-jl-weird-behavior-on-custom-environment-reset-is-in-schrodingers-namespace/84605/1 "2022-07-21T20:43:19Z")

</div>

After implementing the RLBase.reset! method for my environment im being told the method doesn’t exist.  
When checking in help mode, Julia asks whether i meant ‘reset!’ instead of ‘reset!’.  
Does anyone have a clue where that could be coming from?  
I’m sort of at a loss.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/c/7/c7b50df0a782119c282b659d5ef968ec613c4d34.png)

When explicitly calling RLBase.reset! everything works as intended, which is weird because RLBase.reward etc also work without the prefix, but for now the workaround reset!(env) = RLBase.reset!(env) seems to do the trick.

```julia
function RLBase.reset!(env::KniffelGym)
    env.dices = rand(1:6, 5)
    env.field_values = zeros(13)
    env.field_isempty = fill(true, 13)
    env.total_reward = 0
end

```
