take out function line restriction in spec